package com.ezcolour.ticket.dao;

import com.ezcolour.ticket.model.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface RoleDao extends JpaRepository<Role,Long> {
    @Query("select r from Role r where r.id = ?1 ")
    Role findByRoleId(Long id);
}
